<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta name="description" content=""/>
    <meta name="author" content="" />
    <title>汽车购票系统——管理员登录页面</title>


    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <link th:href="@{/css/button.css}" rel="stylesheet"/>
    <link th:href="@{/css/log.css}" rel="stylesheet"/>



</head>

<body>

<div class="top">
    <p>汽车购票</p>
</div>
<div class="container">
    <form class="form-signin" th:action="@{/admin/login}" method="post">
        <div th:if="${errorMsg} != null" id="myAlert" class="alert alert-danger" data-dismiss="alert"
             th:text="${errorMsg}">
        </div>
        <h2 class="form-signin-heading">用户登录</h2>

        <input type="text" id="username" name="username" class="form-control" placeholder="账户">
        <label for="username" class="sr-only">账号</label>

        <input type="password" id="password" name="password" class="form-control" placeholder="密码">
        <label for="password" class="sr-only">密码</label>

        <div class="checkbox">
            <label>
                <input type="checkbox" value="remember-me">记住我
            </label>
            <p><a href="#">忘记密码？</a></p>
        </div>

        <button class="btn button-3d btn-primary btn-block" type="submit">登录</button>
    </form>
    <script>
        function codefans(){
            var msg = document.getElementById("myAlert");
            msg.style.display="none";
        }
        setTimeout("codefans()",2000);
    </script>
</div>

</body>
</html>
